package org.jeecg.modules.demo.roomapartdistribute.service;

import org.jeecg.modules.demo.roomapartdistribute.entity.ZnzfCheckApart;
import org.jeecg.modules.demo.roomapartdistribute.entity.ZnzfCheckApartRoomList;
import com.baomidou.mybatisplus.extension.service.IService;

import java.util.List;

/**
 * @Description: 核定单位房源列表
 * @Author: jeecg-boot
 * @Date:   2022-03-18
 * @Version: V1.0
 */
public interface IZnzfCheckApartRoomListService extends IService<ZnzfCheckApartRoomList> {

    /**
     * 通过核定部门查询房源列表
     * @param zcaId
     * @return
     */
    List<ZnzfCheckApartRoomList> searchsByZnzfCheckApartId(String zcaId);

    /**
     * 通过核定部门查询房源列表
     * @param roomId
     * @return
     */
    List<ZnzfCheckApartRoomList> searchsByRoomId(String roomId);

    /**
     * 通过房源id和核定部门id查询房源列表
     * @param roomId
     * @param CheckApartId
     * @return
     */
    ZnzfCheckApartRoomList searchByRoomIdAndCheckApartId(String roomId, String CheckApartId);


    /**
     * 通过userId查询房源信息
     * @param userId
     * @return
     */
    String findRoomByUserId(String userId);

}
